Fix building against old glib versions
authorMatthew Leeds <matthew.leeds@endlessm.com>
Wed, 6 Jun 2018 20:41:37 +0000 (13:41 -0700)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 7 Jun 2018 17:28:49 +0000 (17:28 +0000)
We need to include libglnx.h in places where ostree-autocleanups.h is
included, so that we get backports of G_DEFINE_AUTOPTR_CLEANUP_FUNC and
friends.

Closes: #1615
Approved by: jlebon

src/libostree/ostree-repo-finder-avahi-parser.c
src/libostree/ostree-repo-finder-avahi.c
src/libostree/ostree-repo-finder.c
tests/repo-finder-mount.c

index 0ca8253fb471faa05afd3c243b2c41ba0ef7af5e..afc9790cb305506c9d06f767dfbda379a7d4cd82 100644 (file)
@@ -29,6 +29,7 @@
 #include <avahi-common/strlst.h>
 #include <glib.h>
 #include <glib-object.h>
+#include <libglnx.h>
 #include <string.h>
 
 #include "ostree-autocleanups.h"
index e48b60f4246ae58072084e02f2acdb59b6f0e39c..223d8f0aaa8926ddca85d3df9c049172d34933e1 100644 (file)
@@ -43,6 +43,7 @@
 #include <gio/gio.h>
 #include <glib.h>
 #include <glib-object.h>
+#include <libglnx.h>
 
 #include "ostree-autocleanups.h"
 #include "ostree-repo-finder.h"
index 32407ff53e20508f86718dfa5f787cb5186bc527..ed44ddcad274612ddf7a9396c14be0d24059168e 100644 (file)
@@ -27,6 +27,7 @@
 #include <gio/gio.h>
 #include <glib.h>
 #include <glib-object.h>
+#include <libglnx.h>
 
 #include "ostree-autocleanups.h"
 #include "ostree-core.h"
index be0e87e300fdff58195c8b8fb0d303287d749b86..2cb1d2302250ba06c182a95ef88303b216d05a2b 100644 (file)
@@ -27,6 +27,7 @@
 #include <gio/gio.h>
 #include <glib.h>
 #include <glib-object.h>
+#include <libglnx.h>
 #include <locale.h>
 
 #include "ostree-autocleanups.h"